mui.ready(function() {
	$('a[data-href]').on('tap', function() {
		var href = $(this).data('href');
		mui.openWindow({
			url: href,
			id: href
		})
	})

})
window.GetQueryString = function(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
	var r = window.location.search.substr(1).match(reg);
	if(r != null) return decodeURI(r[2]);
	return null;
}
window.getClientHeight = function() {
	var h = document.documentElement.clientHeight;
	return h;

}
window.loading = {
	show: function() {
		var tpl = $('<div class="globaLoading"></div>');

		$('body').append(tpl);
	},
	hide: function() {
		$('.globaLoading').hide();
	}

}